package kr.saeildamil.androidstudty.ch11;

import kr.saeildamil.androidstudty.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.Toast;

public class ImageButtonEx extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch11_imagebtn);
		
		ImageButton btn = (ImageButton) findViewById(R.id.ch11_imgbtn_btn);
		btn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(ImageButtonEx.this, "Image Button!", 2000).show();
			}
		});
	}
}
